﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IGolovkine.ShoutCastRipper
{
    public class DisconnectedEventArgs : StationClientEvent
    {
        private readonly TimeSpan _contentLength;
        private readonly Exception _exception;
        
        public DisconnectedEventArgs(string contentTitle, TimeSpan contentLength)
            : this(contentTitle, contentLength, null)
        {
        }
        
        public DisconnectedEventArgs(string contentTitle, TimeSpan contentLength, Exception exception) : base(contentTitle)
        {
            _contentLength = contentLength;
            _exception = exception;
        }

        public TimeSpan ContentLength
        {
            get { return _contentLength; }
        }

        public Exception Exception
        {
            get { return _exception; }
        }
    }
}
